export default function addDomFunc() {
    HTMLElement.prototype.addClass = function() {
        let args = Array.prototype.slice.call(arguments);
        let classList = this.className.split(' ')
        classList = Array.from(new Set(classList.concat(args)))
        this.className = classList.join(' ')
    }
    HTMLElement.prototype.css = function(attr, value) {
        this.style[attr] = value
        return this
    }
}
